

<%@ page import="union.Competencia" %>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'competencia.label', default: 'Competencia')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
	<div class="nav" role="navigation">

		<ul class="nav nav-pills">
			<g:permissao devePossuir="true"
				controles="competencia" acoes="list">
				<li><g:link class="list" action="list">
						<i class="icon-list-alt"></i>
						<g:message code="default.list.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
			<li class="divider-vertical"></li>
			<g:permissao devePossuir="true"
				controles="competencia" acoes="create">
				<li><g:link action="create">
						<i class="icon-file"></i>
						<g:message code="default.add.label" args="[entityName]" />
					</g:link></li>
			</g:permissao>
		</ul>







	</div>
	<div id="show-competencia"
		class="content scaffold-show" role="main">
		<legend>
			<g:message code="default.show.label" args="[entityName]" />
		</legend>
		<mensagem:renderizar mensagem="${flash}" />
		<ol class="property-list competencia">
			
				<g:if test="${competenciaInstance?.nome}">
				<p class="muted">
					<span id="nome-label" class="property-label"><g:message code="competencia.nome.label" default="Nome" />:</span>
					
						<strong><g:fieldValue bean="${competenciaInstance}" field="nome"/></strong>
					
				</p>
				</g:if>
			
				<g:if test="${competenciaInstance?.descricao}">
				<p class="muted">
					<span id="descricao-label" class="property-label"><g:message code="competencia.descricao.label" default="Descricao" />:</span>
					
						<strong><g:fieldValue bean="${competenciaInstance}" field="descricao"/></strong>
					
				</p>
				</g:if>
			
				<g:if test="${competenciaInstance?.competenciasContrato}">
				<p class="muted">
					<span id="competenciasContrato-label" class="property-label"><g:message code="competencia.competenciasContrato.label" default="Competencias Contrato" />:</span>
					
						<g:each in="${competenciaInstance.competenciasContrato}" var="c">
						<strong><g:link controller="competenciasContrato" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></strong>
						</g:each>
					
				</p>
				</g:if>
			
				<g:if test="${competenciaInstance?.indicador}">
				<p class="muted">
					<span id="indicador-label" class="property-label"><g:message code="competencia.indicador.label" default="Indicador" />:</span>
					
						<strong><g:link controller="indicador" action="show" id="${competenciaInstance?.indicador?.id}">${competenciaInstance?.indicador?.encodeAsHTML()}</g:link></strong>
					
				</p>
				</g:if>
			
		</ol>
		<g:form>
			<fieldset class="buttons">
				<g:hiddenField name="id" value="${competenciaInstance?.id}" />
				<button type="submit" name="_action_edit" class="btn"
					value="${message(code: 'default.button.update.label', default: 'Update')}">
					<i class="icon-ok"></i> Editar
				</button>

				<button type="submit" name="_action_delete" class="btn"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Tem certeza que deseja remover?')}');">
					<i class="icon-trash"></i> Remover
				</button>
			</fieldset>
		</g:form>
	</div>
</body>
</html>
